{% extends "base_cn.html" %}
{% block content %}
<script type="text/javascript" src="/static/javascripts/xms_cn.js"></script>
<div>
    <ins>待批准名单: 共{{awaiting.count}}条记录!
    <br/></ins>
    {% include 'pager_cn.html' %}
    <form method="post" action="/awaiting/"  onsubmit="return verifyListForm('await')" >
    <table class="datalist" cellpadding="2" cellspacing="0">
    <tr>
      <th style="width:150px;"><span>邮件</span></th>
      <th style="width:150px;"><span>姓名</span></th>
      <th><span>简介</span></th>
      <th style="width:100px;">
      <input onclick="selectAll('await')" id="selectall" type="checkbox"/>全选 批准?
      </th>
      {%if isAdmin%}
      <th style="width:50px;">操作</th>
      {%endif%}
    </tr>
    {% for user in awaiting.list %}
    <tr class={%if forloop.counter0|divisibleby:2 %}"alternation"{%else%}"seperation"{%endif%}>
      <td>{{user.User.email|escape }}</td>
      <td>{{user.NickName|escape}}</td>
      <td><span>{{user.Intro|escape}}</span></td>
      <td>
      <input onmouseover="onCheckBoxMoseOver(event,'{{user.key}}')" name="await" id="{{user.key}}" type="checkbox" value="{{user.key}}"/>
      </td>
      {%if isAdmin%}
      <td>
      <a href="/groupaction/delawaitinguser/0/{{user.User.email}}">删除</a>
      </td>
      {%endif%}
    </tr>
    {% endfor %}

    {% if awaiting.list %}
    <tr><td colspan="4" align="center"><input class="MyButton" type="submit" value="批准选中申请"/></td></tr>
    {% endif %}
    </table>
    </form>
</div>
{% endblock %}
